home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Thread Manager / Thread Manager 2.1.1d1+ / ThreadedSort / Sprocket / Interfaces / AppleEventHandling.h next >
Encoding:
C/C++ Source or Header  |  1995-04-28  |  1.9 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AppleEventHandling.h
  3.  
  4.     Contains:    Minimalist support for the required and Display Manager suites
  5.                 To really support AppleScript™, we’ll do more work in here.
  6.  
  7.     Written by: Dave Falkenburg
  8.  
  9.     Copyright:    © 1993-1994 by Dave Falkenburg, all rights reserved.
  10.  
  11.     Change History (most recent first):     
  12.  
  13.          <5>    11/16/94    DRF        Add StandardAEIdleProc for people who like using AESend with
  14.                                     kAEWaitReply.
  15.          <4>    11/12/94    DRF        AppConditionals.h -> BuildConditionals.h
  16.          <2>      9/4/94    DRF        Added Text Services AppleEvent handlers.
  17.  */
  18.  
  19. #ifndef        _APPLEEVENTHANDLING_
  20. #define        _APPLEEVENTHANDLING_
  21.  
  22. #ifndef        __APPLEEVENTS__
  23. #include    <AppleEvents.h>
  24. #endif
  25.  
  26. #ifndef        __OCESTANDARDMAIL__
  27. #include    <OCEStandardMail.h>
  28. #endif
  29.  
  30.  
  31. void                InstallAppleEventHandlers(void);
  32. OSErr                CheckAppleEventForMissingParams(AppleEvent * theAppleEvent);
  33. extern AEIdleUPP    StandardAEIdleUPP;
  34.  
  35. //    Handlers for the Required Suite:
  36.  
  37. typedef OSErr        (*EachDocumentProcPtr)(LetterDescriptor *aFile,void * param);
  38. OSErr                ForEachDocumentInList(AEDescList documentList,EachDocumentProcPtr documentProc,void * documentParam);
  39.  
  40. pascal OSErr        HandleOpenApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  41. pascal OSErr        HandleOpenDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  42. pascal OSErr        HandlePrintDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  43. pascal OSErr        HandleQuitApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  44.  
  45.  
  46. //    Display Manager:
  47.  
  48. pascal OSErr    HandleSystemConfigNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  49.  
  50.  
  51. #if    qInlineInputAware
  52.  
  53. //    Text Services Manager:
  54.  
  55. pascal OSErr    HandleTextServicesUpdateActiveInputArea(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  56. pascal OSErr    HandleTextServicesPos2Offset(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  57. pascal OSErr    HandleTextServicesOffset2Pos(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  58.  
  59. #endif
  60.  
  61. #endif
  62.